import request from '@/utils/request'

export function getsearch(params) {
  return request.get('/ydd_cate/list', { params })
}
export function addcate(data) {
  return request.post('/ydd_cate/add', data)
}
export function delcate(id) {
  return request.get('/ydd_cate/del', { params: { id }})
}
export function catedetail(id) {
  return request.get('/ydd_cate/rowInfo', { params: { id }})
}
export function editcate(data) {
  return request.post('/ydd_cate/update', data)
}
export function allcate() {
  return request.get('/ydd_cate/all')
}
